package classes.control {
   
    import com.adobe.cairngorm.control.FrontController;
	import classes.event.dynamiccalendar.*;
	import classes.event.dynamiccalendar.form.*;
	import classes.command.dynamiccalendar.*;
	import classes.command.dynamiccalendar.form.*;

    public class CoreController extends FrontController {
   
        public function CoreController() {
            this.initialize();
        }
       
        public function initialize():void {
           
            //ADD COMMANDS
            //this.addCommand(LoginEvent.LOGIN,LoginCommand);
		
			//dynamic calendar
        	this.addCommand(DynamicCalendarDateChangedEvent.EVENT_NAME,DynamicCalendarDateChangedCommand);

        	this.addCommand(DynamicCalendarDayClickedEvent.EVENT_NAME,DynamicCalendarDayClickedCommand);
        	this.addCommand(DynamicCalendarMonthClickedEvent.EVENT_NAME,DynamicCalendarMonthClickedCommand);
        	this.addCommand(DynamicCalendarWeekClickedEvent.EVENT_NAME,DynamicCalendarWeekClickedCommand);

        	this.addCommand(DynamicCalendarNewEventAddedEvent.EVENT_NAME,DynamicCalendarNewEventAddedCommand);

			this.addCommand(DynamicCalendarEventFormSaveClickedEvent.EVENT_NAME,DynamicCalendarEventFormSaveClickedCommand);
			this.addCommand(DynamicCalendarEventFormCloseClickedEvent.EVENT_NAME,DynamicCalendarEventFormCloseClickedCommand);
        }
   
    }
}